package com.uzai.console.vo.exportinfo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Auther: liuqi
 * @Date: 2021/8/10 14:58
 * @Description:
 */
@ApiModel("返回文件下载信息列表")
public class ExportInfoVo {
    @ApiModelProperty("ID")
    private Long id;
    @ApiModelProperty("文件名称")
    private String fileName;
    @ApiModelProperty("下载地址")
    private String fileUrl;
    @ApiModelProperty("下载类型")
    private Integer type;
    @ApiModelProperty("文件类型名称(1提现 2会员 3淘宝订单 4京东订单 5拼多多订单 6唯品会订单 7美团订单)")
    private String typeName;
    @ApiModelProperty("数据总量")
    private Integer dataCount;
    @ApiModelProperty("单价")
    private Double price;
    @ApiModelProperty("总价")
    private Double amount;
    @ApiModelProperty("导出时间")
    private Integer createTime;
    @ApiModelProperty("到期时间")
    private Integer expiredTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getDataCount() {
        return dataCount;
    }

    public void setDataCount(Integer dataCount) {
        this.dataCount = dataCount;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    public Integer getExpiredTime() {
        if(createTime != null){
            expiredTime = createTime + 1296000; //到期时间为创建时间之后15天
        }
        return expiredTime;
    }

    public void setExpiredTime(Integer expiredTime) {
        this.expiredTime = expiredTime;
    }
}
